Adwaita: csd message dialog fixes.
authorLapo Calamandrei <calamandrei@gmail.com>
Mon, 7 Jul 2014 15:56:29 +0000 (17:56 +0200)
committerLapo Calamandrei <calamandrei@gmail.com>
Mon, 7 Jul 2014 15:56:29 +0000 (17:56 +0200)
Lighter shadow like popovers and bigger radius then buttons on
the background to avoid antialiasing artifacts.

gtk/resources/theme/Adwaita/_common.scss
gtk/resources/theme/Adwaita/gtk-contained-dark.css
gtk/resources/theme/Adwaita/gtk-contained.css

index 71b2976aaeb25c84be8be39b0affe707d1ee480a..cf32e6652164ba71d93f67d509c3f2d870fafbc3 100644 (file)
@@ -1863,11 +1863,12 @@ GtkCalendar {
   }
   &.csd { // rounded bottom border styling for csd version
     &.background {
-      border-bottom-left-radius: 7px;
-      border-bottom-right-radius: 7px;
+      // bigger radius for better antialiasing
+      border-bottom-left-radius: 9px;
+      border-bottom-right-radius: 9px;
     }
     .dialog-action-area .button {
-      padding: 8px;
+      padding: 12px;
       border-radius: 0;
       @include button(normal, $noedge: true);
       @extend %middle_button;
@@ -2150,6 +2151,8 @@ GtkColorChooserWidget #add-color-button {
     }
     &.message-dialog {
       border-radius: 7px;
+      box-shadow: 0 1px 2px transparentize(black, 0.8),
+                  0 0 0 1px transparentize($_wm_border,0.1);
     }
   }
 }
index 92aea3c42758e9e5060f6966809e43eaba22d86f..f6d5b3df8b2fcb349b7124e52ef1c387beae0c1c 100644 (file)
@@ -2391,10 +2391,10 @@ GtkCalendar {
     border-style: none;
     box-shadow: inset 0 1px rgba(238, 238, 236, 0.1); }
   .message-dialog.csd.background {
-    border-bottom-left-radius: 7px;
-    border-bottom-right-radius: 7px; }
+    border-bottom-left-radius: 9px;
+    border-bottom-right-radius: 9px; }
   .message-dialog.csd .dialog-action-area .button {
-    padding: 8px;
+    padding: 12px;
     border-radius: 0;
     border-style: solid;
     border-width: 1px;
@@ -2763,7 +2763,8 @@ GtkColorChooserWidget #add-color-button {
     border-radius: 5px;
     box-shadow: none; }
   .window-frame.csd.message-dialog {
-    border-radius: 7px; }
+    border-radius: 7px;
+    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(28, 31, 31, 0.8); }
 
 .button.titlebutton {
   padding: 8px;
index 9f1094bbb2cdca83856f0bfd0d60787d86f47619..2f3905b92ef1525bf63d39d082b72fdf09beb489 100644 (file)
@@ -2383,10 +2383,10 @@ GtkCalendar {
     border-style: none;
     box-shadow: inset 0 1px white; }
   .message-dialog.csd.background {
-    border-bottom-left-radius: 7px;
-    border-bottom-right-radius: 7px; }
+    border-bottom-left-radius: 9px;
+    border-bottom-right-radius: 9px; }
   .message-dialog.csd .dialog-action-area .button {
-    padding: 8px;
+    padding: 12px;
     border-radius: 0;
     border-style: solid;
     border-width: 1px;
@@ -2755,7 +2755,8 @@ GtkColorChooserWidget #add-color-button {
     border-radius: 5px;
     box-shadow: none; }
   .window-frame.csd.message-dialog {
-    border-radius: 7px; }
+    border-radius: 7px;
+    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.13); }
 
 .button.titlebutton {
   padding: 8px;